package com.xh.clean.modular.clean.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.xh.clean.modular.clean.Vo.PatrolVo;
import com.xh.clean.modular.clean.model.Patrol;
import com.xh.clean.modular.clean.dao.PatrolMapper;
import com.xh.clean.modular.clean.service.IPatrolService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 巡视表 服务实现类
 * </p>
 *
 * @author 杨杰123
 * @since 2018-06-24
 */
@Service
public class PatrolServiceImpl extends ServiceImpl<PatrolMapper, Patrol> implements IPatrolService {

    @Override
    public List<Map<String, Object>> selectPatrols(Page<Patrol> page, String beginTime, String endTime, String orderByField, boolean asc) {
        return this.baseMapper.selectPatrols(page, beginTime, endTime, orderByField, asc);
    }

    @Override
    public List<Map<String, Object>> selectPatrolsByPatrolVo(Page<PatrolVo> page, PatrolVo patrolVo, String orderByField, boolean asc) {
        return  this.baseMapper.selectPatrolsByPatrolVo(page,patrolVo, orderByField, asc);
    }

    @Override
    public List<Map<String, Object>> selectPatrolRanking(Page<PatrolVo> page, PatrolVo patrolVo, String orderByField, boolean asc) {
        return this.baseMapper.selectPatrolRanking(page,patrolVo, orderByField, asc);
    }
}
